package com.cbg.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 更新名称vo
 *
 * @author wangjuzheng
 * @date 2019-10-30
 **/
@Data
public class CategoryNameVO implements Serializable {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @NotNull(message = "id为空")
    private Long id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    @NotBlank(message = "名称为空")
    @Length(max = 32,message = "分类名称长度不能超过32位")
    private String name;
}
